#ifndef CONSOLE_LOG_STREAM_H
#define CONSOLE_LOG_STREAM_H

// Remove warning about 'this' use in initiator list - pointer is only stored
#if defined(WIN32) && !defined(__GNUC__)
#pragma warning( disable : 4355 ) // using this in base member initializer list 
#endif

#include "console_log_buf.h"

class ConsoleLogStream :private ConsoleLogBuf, public std::ostream
{
public:
	ConsoleLogStream():ConsoleLogBuf(),std::ostream(this)
	{
	}

	virtual ~ConsoleLogStream()
	{
	}
	
private:

	ConsoleLogStream(const ConsoleLogStream& );
	ConsoleLogStream& operator=(const ConsoleLogStream&);
};

#endif // 
